package my.netty.channel.handler;

public abstract class SimpleChannelInboundHandler implements ChannelInboundHandler {

    @Override
    public void channelRead(AbstractChannelHandlerContext ctx, Object msg) {
        channelRead0(ctx, msg);
        ctx.fireChannelRead(msg);
    }

    protected abstract <I> void channelRead0(AbstractChannelHandlerContext ctx, I msg);
}
